home *** CD-ROM | disk | FTP | other *** search
/ PC for Alla 2005 May / PC för Alla 0505.iso / fullversioner / realsoft3d / data1.cab / Scripting / scripts / js / real / widget / r3realsoft.js < prev    next >
Encoding:
JavaScript  |  2005-04-04  |  2.0 KB  |  78 lines

  1.  
  2. // JavaScript wrapper for r3realsoft.h
  3. // Auto generated file, do not modify by hand
  4. // Copyright ⌐ 2004, Realsoft Graphics Oy
  5.  
  6. var R3_REALSOFT_H = 1;
  7. include("oops/r3root.js")
  8.  
  9.  
  10. var R3CLID_REALSOFT = 1737;
  11.  
  12.  
  13.  
  14.  
  15. // Description: Start event processing, returns when the application is terminated.
  16.  
  17. R3RSM_RUN = 1737000;
  18.  
  19. function mR3RSM_RUN() {
  20.   DoA(this.r3obj, 1737000, 0, R3TID_INTEGER, 0);
  21. }
  22.  
  23. // Description: Class method. Register new startup hook. Startup hooks are called when the application is
  24. //      completely initialized and ready to start event processing. In startup hooks, one can study contents
  25. //      of the startup project, insert new GUI objects into the user interface etc. The program
  26. //      passes only one parameter to the hook functions: the address of the main window object.
  27. // Returns: Boolean, true if hook was succesfully registered.
  28.  
  29. R3RSCM_REGISTERSTARTUPHOOK = 1737001;
  30.  
  31. function mR3RSCM_REGISTERSTARTUPHOOK() {
  32.   return   DoA(this.r3obj, 1737001, 0, R3TID_INTEGER, 0);
  33. }
  34.  
  35. // Description: Load project
  36. // Returns: Boolean, true if succeeded
  37. // p1: Integer, section bits
  38. // p2: Boolean, replace
  39. // p3: String, file name    
  40.  
  41. R3RSM_LOAD = 1737002;
  42.  
  43. function mR3RSM_LOAD(p1, p2, p3) {
  44.   return   DoA3(this.r3obj, 1737002, p1, R3TID_INTEGER, 0, p2, R3TID_BOOLEAN, 0, p3, R3TID_STRING, 0);
  45. }
  46.  
  47.  
  48.  
  49.  
  50. R3RSA_Model = 1737500;
  51. function GetR3RSA_Model() {
  52.   return R3ToJS(R3Get(this.r3obj, R3RSA_Model, R3TID_OBJECT, 0)); 
  53. }
  54.  
  55. R3RSA_View = 1737501;
  56. function GetR3RSA_View() {
  57.   return R3ToJS(R3Get(this.r3obj, R3RSA_View, R3TID_OBJECT, 0)); 
  58. }
  59.  
  60.  
  61.  
  62. function r3Realsoft () { 
  63.    this.base = r3God;
  64.    if(arguments.length) {
  65.       this.base(R3CLID_REALSOFT, arguments);
  66.    }
  67.    // Methods
  68.    this.RUN=mR3RSM_RUN;
  69.    this.REGISTERSTARTUPHOOK=mR3RSCM_REGISTERSTARTUPHOOK;
  70.    this.LOAD=mR3RSM_LOAD;
  71.  
  72.    // Attributes
  73.    this.GetModel=GetR3RSA_Model;
  74.    this.GetView=GetR3RSA_View;
  75. }
  76.  
  77. r3Realsoft.prototype=new r3Root;
  78. // r3realsoft.h_H